<?php
$consumer_key = 'Q1yZj7CIEaQ4CaP1avHisA';
$consumer_secret = 'QWXYtRfs2muLG3Vx9U4iYffw1DCUhjW1SplzcMKoo';

$access_token = '569899957-lYmbm5JN5jT6BsusVDfWuyXitr7KFKF93yngFxdv';
$access_token_secret = 'be9SHw1b6cJKvLX49UKaGI1matTGKoWxnB5wHIXs';

require_once('api/twitteroauth.php');
require_once('dbase.php');


$connection = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);

$content = $connection->get('account/rate_limit_status');
echo "Current API hits remaining: {$content->remaining_hits}.";

$parameters = array('status' => 'WOO OOH OOH!');
$status = $connection->post('statuses/update', $parameters);
?>